package sdau.computer;

public class DemoJUnit {
    public int add(int a, int b) {
        return a + b;
    }
    public int sub(int a, int b) {
        return a - b;
    }
    public int multiply(int a, int b) {
        return a * b;
    } 
    public int divide(int a, int b) {
        if (b == 0) {
          throw new IllegalArgumentException("Cannot divide by zero");
        } else {
          return a / b;
        }
    }
}
